package edu.xlh.travel.service.impl;

import edu.xlh.travel.dao.FlowDao;
import edu.xlh.travel.pojo.Flow;
import edu.xlh.travel.service.FlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
public class FlowServiceImpl implements FlowService {
    @Autowired
    private FlowDao flowDao;
    @Override
    public Flow findById(String orderid) {
        return flowDao.findByOrderNum(orderid);
    }

    @Override
    public void insert(Flow flow) {
        flowDao.save(flow);
    }
}
